package uit.comstore.model.blo;

import java.util.List;

import org.hibernate.Session;

import uit.comstore.model.entity.DeliveryDetail;
import uit.comstore.utils.HibernateSessionFactory;

public class DeliveryDetailBLO {
	@SuppressWarnings("unchecked")
	public List<DeliveryDetail> list() {
		List<DeliveryDetail> DeliveryDetails = null;
		Session session = HibernateSessionFactory.getSessionFactory().getCurrentSession();
		session.beginTransaction();
		DeliveryDetails = (List<DeliveryDetail>) session.createQuery("from DeliveryDetail").list();
		session.getTransaction().commit();
		return DeliveryDetails;
	}
}
